import {
    createStore,
    combineReducers,
    applyMiddleware
} from 'redux' ;

import  reducers  from './reducers';
import thunk from  'redux-thunk';

export default  createStore(
    combineReducers(reducers),
    {
 
        departDate: Date.now(),
        arriveDate: Date.now(),
        departTimeStr: null,
        arriveTimeStr: null,
        departStation: null,
        arriveStation: null,
        trainNumber: null,
        durationStr: null,
        tickets: [],
        price: null,
        passengers: [],
        isScheduleVisible: false,
        searchParsed:false,
    },
    applyMiddleware(thunk)
)